package com.googlecode.linkmein.domain;

public class MapInfo {
    private String address;
    private double lat;
    private double lng;
    private String shrinkedEnglishName;
    public static final MapInfo NULL = new NullMapInfo();
    public MapInfoType type;

    public MapInfo(double lat, double lng, String address, String shrinkedEnglishName, String type) {
        this.lat = lat;
        this.lng = lng;
        this.address = address;
        this.shrinkedEnglishName = shrinkedEnglishName;
        this.type = MapInfoType.getByString(type);
    }


    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public MapInfoType getType() {
        return type;
    }

    public String getShrinkedEnglishName() {
        return shrinkedEnglishName;
    }

    public void clone(MapInfo mapInfo) {
        shrinkedEnglishName = mapInfo.getShrinkedEnglishName();
        address = mapInfo.getAddress();
        lat = mapInfo.getLat();
        lng = mapInfo.getLng();
        type = mapInfo.getType();
    }
}
